<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>QxOrm: C:/Dvlp/_Perso/QxOrm/include/QxDao/QxDaoThrowable.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo_qxorm.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">QxOrm
   &#160;<span id="projectnumber">1.4.3</span>
   </div>
   <div id="projectbrief">C++ Object Relational Mapping library</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_qx_dao_throwable_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">QxDaoThrowable.h</div>  </div>
</div>
<div class="contents">
<a href="_qx_dao_throwable_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/****************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment">**</span>
<a name="l00003"></a>00003 <span class="comment">** http://www.qxorm.com/</span>
<a name="l00004"></a>00004 <span class="comment">** Copyright (C) 2013 Lionel Marty (contact@qxorm.com)</span>
<a name="l00005"></a>00005 <span class="comment">**</span>
<a name="l00006"></a>00006 <span class="comment">** This file is part of the QxOrm library</span>
<a name="l00007"></a>00007 <span class="comment">**</span>
<a name="l00008"></a>00008 <span class="comment">** This software is provided &#39;as-is&#39;, without any express or implied</span>
<a name="l00009"></a>00009 <span class="comment">** warranty. In no event will the authors be held liable for any</span>
<a name="l00010"></a>00010 <span class="comment">** damages arising from the use of this software</span>
<a name="l00011"></a>00011 <span class="comment">**</span>
<a name="l00012"></a>00012 <span class="comment">** Commercial Usage</span>
<a name="l00013"></a>00013 <span class="comment">** Licensees holding valid commercial QxOrm licenses may use this file in</span>
<a name="l00014"></a>00014 <span class="comment">** accordance with the commercial license agreement provided with the</span>
<a name="l00015"></a>00015 <span class="comment">** Software or, alternatively, in accordance with the terms contained in</span>
<a name="l00016"></a>00016 <span class="comment">** a written agreement between you and Lionel Marty</span>
<a name="l00017"></a>00017 <span class="comment">**</span>
<a name="l00018"></a>00018 <span class="comment">** GNU General Public License Usage</span>
<a name="l00019"></a>00019 <span class="comment">** Alternatively, this file may be used under the terms of the GNU</span>
<a name="l00020"></a>00020 <span class="comment">** General Public License version 3.0 as published by the Free Software</span>
<a name="l00021"></a>00021 <span class="comment">** Foundation and appearing in the file &#39;license.gpl3.txt&#39; included in the</span>
<a name="l00022"></a>00022 <span class="comment">** packaging of this file. Please review the following information to</span>
<a name="l00023"></a>00023 <span class="comment">** ensure the GNU General Public License version 3.0 requirements will be</span>
<a name="l00024"></a>00024 <span class="comment">** met : http://www.gnu.org/copyleft/gpl.html</span>
<a name="l00025"></a>00025 <span class="comment">**</span>
<a name="l00026"></a>00026 <span class="comment">** If you are unsure which license is appropriate for your use, or</span>
<a name="l00027"></a>00027 <span class="comment">** if you have questions regarding the use of this file, please contact :</span>
<a name="l00028"></a>00028 <span class="comment">** contact@qxorm.com</span>
<a name="l00029"></a>00029 <span class="comment">**</span>
<a name="l00030"></a>00030 <span class="comment">****************************************************************************/</span>
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 <span class="preprocessor">#ifndef _QX_DAO_THROWABLE_H_</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#define _QX_DAO_THROWABLE_H_</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00035"></a>00035 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#pragma once</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00046"></a>00046 <span class="preprocessor">#include &lt;<a class="code" href="_qx_dao_8h.html" title="Provide template functions to map C++ class registered into QxOrm context with table database (ORM - ...">QxDao/QxDao.h</a>&gt;</span>
<a name="l00047"></a>00047 <span class="preprocessor">#include &lt;<a class="code" href="_qx_sql_error_8h.html" title="Define a SQL error exception and retrieve QSqlError type of Qt library.">QxDao/QxSqlError.h</a>&gt;</span>
<a name="l00048"></a>00048 
<a name="l00049"></a>00049 <span class="keyword">namespace </span>qx {
<a name="l00050"></a>00050 <span class="keyword">namespace </span>dao {
<a name="l00051"></a>00051 
<a name="l00056"></a><a class="code" href="namespaceqx_1_1dao_1_1throwable.html">00056</a> <span class="keyword">namespace </span>throwable {
<a name="l00057"></a>00057 
<a name="l00059"></a>00059 
<a name="l00070"></a>00070 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00071"></a>00071 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#gaf777ce33c67ea7fcd4e60b740d15f9ec" title="Return the number of lines in the table (database) mapped to the C++ class T (registered into QxOrm c...">count</a>(<span class="keywordtype">long</span> &amp; lCount, <span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_sql_query.html" title="qx::QxSqlQuery : define a user SQL query added to default SQL query builded by QxOrm library...">qx::QxSqlQuery</a> &amp; query = <a class="code" href="classqx_1_1_qx_sql_query.html" title="qx::QxSqlQuery : define a user SQL query added to default SQL query builded by QxOrm library...">qx::QxSqlQuery</a>(), QSqlDatabase * pDatabase = NULL)
<a name="l00072"></a>00072 { QSqlError err = <a class="code" href="group___qx_dao.html#gaf777ce33c67ea7fcd4e60b740d15f9ec" title="Return the number of lines in the table (database) mapped to the C++ class T (registered into QxOrm c...">qx::dao::detail::QxDao_Count&lt;T&gt;::count</a>(lCount, query, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00073"></a>00073 
<a name="l00084"></a>00084 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00085"></a>00085 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#gab4400decee849f008633c52a47508995" title="Insert an element or a list of elements into database.">insert</a>(T &amp; t, QSqlDatabase * pDatabase = NULL)
<a name="l00086"></a>00086 { QSqlError err = <a class="code" href="group___qx_dao.html#gab4400decee849f008633c52a47508995" title="Insert an element or a list of elements into database.">qx::dao::detail::QxDao_Insert&lt;T&gt;::insert</a>(t, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00087"></a>00087 
<a name="l00100"></a>00100 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00101"></a>00101 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga100e9d635a4720ed9512799ba0ea519b" title="Insert (if no exist) or update (if already exist) an element or a list of elements into database...">save</a>(T &amp; t, QSqlDatabase * pDatabase = NULL)
<a name="l00102"></a>00102 { QSqlError err = <a class="code" href="group___qx_dao.html#ga100e9d635a4720ed9512799ba0ea519b" title="Insert (if no exist) or update (if already exist) an element or a list of elements into database...">qx::dao::detail::QxDao_Save&lt;T&gt;::save</a>(t, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00103"></a>00103 
<a name="l00117"></a>00117 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00118"></a>00118 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga298e15a5e745ae43d99de9b4279aca3e" title="Delete a line (or list of lines) of a table (database) mapped to a C++ object of type T (registered i...">delete_by_id</a>(T &amp; t, QSqlDatabase * pDatabase = NULL)
<a name="l00119"></a>00119 { QSqlError err = qx::dao::detail::QxDao_DeleteById&lt;T&gt;::deleteById(t, pDatabase, <span class="keyword">true</span>); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00120"></a>00120 
<a name="l00131"></a>00131 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00132"></a>00132 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga776e2edd2da36029cddc13e9e6e366f5" title="Destroy a line (or list of lines) of a table (database) mapped to a C++ object of type T (registered ...">destroy_by_id</a>(T &amp; t, QSqlDatabase * pDatabase = NULL)
<a name="l00133"></a>00133 { QSqlError err = qx::dao::detail::QxDao_DeleteById&lt;T&gt;::deleteById(t, pDatabase, <span class="keyword">false</span>); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00134"></a>00134 
<a name="l00147"></a>00147 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00148"></a>00148 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga959410c3e4bcc075a7c5f9c5d41bb734" title="Delete all lines of a table (database) mapped to a C++ class T (registered into QxOrm context)...">delete_all</a>(QSqlDatabase * pDatabase = NULL)
<a name="l00149"></a>00149 { QSqlError err = qx::dao::detail::QxDao_DeleteAll&lt;T&gt;::deleteAll(<span class="stringliteral">&quot;&quot;</span>, pDatabase, <span class="keyword">true</span>); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00150"></a>00150 
<a name="l00160"></a>00160 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00161"></a>00161 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga075cc9ac81c4cf65fb67d3d286a1de76" title="Destroy all lines of a table (database) mapped to a C++ class T (registered into QxOrm context)...">destroy_all</a>(QSqlDatabase * pDatabase = NULL)
<a name="l00162"></a>00162 { QSqlError err = qx::dao::detail::QxDao_DeleteAll&lt;T&gt;::deleteAll(<span class="stringliteral">&quot;&quot;</span>, pDatabase, <span class="keyword">false</span>); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00163"></a>00163 
<a name="l00177"></a>00177 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00178"></a>00178 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#gac9f35c808cdff54ecd0c06784fffccdf" title="Delete all lines of a table (database) mapped to a C++ class T (registered into QxOrm context) and fi...">delete_by_query</a>(<span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_sql_query.html" title="qx::QxSqlQuery : define a user SQL query added to default SQL query builded by QxOrm library...">qx::QxSqlQuery</a> &amp; query, QSqlDatabase * pDatabase = NULL)
<a name="l00179"></a>00179 { QSqlError err = qx::dao::detail::QxDao_DeleteAll&lt;T&gt;::deleteAll(query, pDatabase, <span class="keyword">true</span>); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00180"></a>00180 
<a name="l00191"></a>00191 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00192"></a>00192 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga859152daecd5f06d8ca7442dc4b719a3" title="Destroy all lines of a table (database) mapped to a C++ class T (registered into QxOrm context) and f...">destroy_by_query</a>(<span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_sql_query.html" title="qx::QxSqlQuery : define a user SQL query added to default SQL query builded by QxOrm library...">qx::QxSqlQuery</a> &amp; query, QSqlDatabase * pDatabase = NULL)
<a name="l00193"></a>00193 { QSqlError err = qx::dao::detail::QxDao_DeleteAll&lt;T&gt;::deleteAll(query, pDatabase, <span class="keyword">false</span>); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00194"></a>00194 
<a name="l00204"></a>00204 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00205"></a>00205 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#gacdaac47549d0e850cf5d6a16315efaab" title="Create a table into database (with all columns) mapped to a C++ class T (registered into QxOrm contex...">create_table</a>(QSqlDatabase * pDatabase = NULL)
<a name="l00206"></a>00206 { QSqlError err = qx::dao::detail::QxDao_CreateTable&lt;T&gt;::createTable(pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00207"></a>00207 
<a name="l00219"></a>00219 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00220"></a>00220 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga37648a23475371e1b83ea2082265790d" title="Fetch an object t (retrieve all its properties) of type T (registered into QxOrm context) mapped to a...">fetch_by_id_with_relation</a>(<span class="keyword">const</span> QString &amp; relation, T &amp; t, QSqlDatabase * pDatabase = NULL)
<a name="l00221"></a>00221 { QSqlError err = qx::dao::detail::QxDao_FetchById_WithRelation&lt;T&gt;::fetchById(relation, t, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00222"></a>00222 
<a name="l00234"></a>00234 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00235"></a>00235 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga37648a23475371e1b83ea2082265790d" title="Fetch an object t (retrieve all its properties) of type T (registered into QxOrm context) mapped to a...">fetch_by_id_with_relation</a>(<span class="keyword">const</span> QStringList &amp; relation, T &amp; t, QSqlDatabase * pDatabase = NULL)
<a name="l00236"></a>00236 { QSqlError err = qx::dao::detail::QxDao_FetchById_WithRelation&lt;T&gt;::fetchById(relation, t, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00237"></a>00237 
<a name="l00248"></a>00248 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00249"></a>00249 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#gafae6ca489fa472c6b664721845948aec" title="Fetch an object t (retrieve all its properties and relationships) of type T (registered into QxOrm co...">fetch_by_id_with_all_relation</a>(T &amp; t, QSqlDatabase * pDatabase = NULL)
<a name="l00250"></a>00250 { QSqlError err = qx::dao::detail::QxDao_FetchById_WithRelation&lt;T&gt;::fetchById(<span class="stringliteral">&quot;*&quot;</span>, t, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00251"></a>00251 
<a name="l00263"></a>00263 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00264"></a>00264 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#gad4e90031bacdd06cf278ae3ccefa9811" title="Fetch a list of objects (retrieve all elements and properties associated) of type T (container regist...">fetch_all_with_relation</a>(<span class="keyword">const</span> QString &amp; relation, T &amp; t, QSqlDatabase * pDatabase = NULL)
<a name="l00265"></a>00265 { QSqlError err = qx::dao::detail::QxDao_FetchAll_WithRelation&lt;T&gt;::fetchAll(relation, <span class="stringliteral">&quot;&quot;</span>, t, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00266"></a>00266 
<a name="l00278"></a>00278 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00279"></a>00279 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#gad4e90031bacdd06cf278ae3ccefa9811" title="Fetch a list of objects (retrieve all elements and properties associated) of type T (container regist...">fetch_all_with_relation</a>(<span class="keyword">const</span> QStringList &amp; relation, T &amp; t, QSqlDatabase * pDatabase = NULL)
<a name="l00280"></a>00280 { QSqlError err = qx::dao::detail::QxDao_FetchAll_WithRelation&lt;T&gt;::fetchAll(relation, <span class="stringliteral">&quot;&quot;</span>, t, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00281"></a>00281 
<a name="l00292"></a>00292 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00293"></a>00293 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#gafde0aa42be925bc394520674bbe03c01" title="Fetch a list of objects (retrieve all elements and properties + all relationships associated) of type...">fetch_all_with_all_relation</a>(T &amp; t, QSqlDatabase * pDatabase = NULL)
<a name="l00294"></a>00294 { QSqlError err = qx::dao::detail::QxDao_FetchAll_WithRelation&lt;T&gt;::fetchAll(<span class="stringliteral">&quot;*&quot;</span>, <span class="stringliteral">&quot;&quot;</span>, t, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00295"></a>00295 
<a name="l00308"></a>00308 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00309"></a>00309 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga2d8f0176ef1c7b675297637090c95129" title="Fetch a list of objects (retrieve all elements and properties associated) of type T (container regist...">fetch_by_query_with_relation</a>(<span class="keyword">const</span> QString &amp; relation, <span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_sql_query.html" title="qx::QxSqlQuery : define a user SQL query added to default SQL query builded by QxOrm library...">qx::QxSqlQuery</a> &amp; query, T &amp; t, QSqlDatabase * pDatabase = NULL)
<a name="l00310"></a>00310 { QSqlError err = qx::dao::detail::QxDao_FetchAll_WithRelation&lt;T&gt;::fetchAll(relation, query, t, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00311"></a>00311 
<a name="l00324"></a>00324 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00325"></a>00325 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga2d8f0176ef1c7b675297637090c95129" title="Fetch a list of objects (retrieve all elements and properties associated) of type T (container regist...">fetch_by_query_with_relation</a>(<span class="keyword">const</span> QStringList &amp; relation, <span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_sql_query.html" title="qx::QxSqlQuery : define a user SQL query added to default SQL query builded by QxOrm library...">qx::QxSqlQuery</a> &amp; query, T &amp; t, QSqlDatabase * pDatabase = NULL)
<a name="l00326"></a>00326 { QSqlError err = qx::dao::detail::QxDao_FetchAll_WithRelation&lt;T&gt;::fetchAll(relation, query, t, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00327"></a>00327 
<a name="l00339"></a>00339 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00340"></a>00340 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#gac9baf82921316cf054abb9126df5a81c" title="Fetch a list of objects (retrieve all elements and properties + all relationships associated) of type...">fetch_by_query_with_all_relation</a>(<span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_sql_query.html" title="qx::QxSqlQuery : define a user SQL query added to default SQL query builded by QxOrm library...">qx::QxSqlQuery</a> &amp; query, T &amp; t, QSqlDatabase * pDatabase = NULL)
<a name="l00341"></a>00341 { QSqlError err = qx::dao::detail::QxDao_FetchAll_WithRelation&lt;T&gt;::fetchAll(<span class="stringliteral">&quot;*&quot;</span>, query, t, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00342"></a>00342 
<a name="l00354"></a>00354 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00355"></a>00355 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga82e03bc10e1fbdc3f58f1efac252f4bc" title="Insert an element and its relationships (or a list of elements + relationships) into database...">insert_with_relation</a>(<span class="keyword">const</span> QString &amp; relation, T &amp; t, QSqlDatabase * pDatabase = NULL)
<a name="l00356"></a>00356 { QSqlError err = <a class="code" href="group___qx_dao.html#gab4400decee849f008633c52a47508995" title="Insert an element or a list of elements into database.">qx::dao::detail::QxDao_Insert_WithRelation&lt;T&gt;::insert</a>(relation, t, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00357"></a>00357 
<a name="l00369"></a>00369 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00370"></a>00370 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga82e03bc10e1fbdc3f58f1efac252f4bc" title="Insert an element and its relationships (or a list of elements + relationships) into database...">insert_with_relation</a>(<span class="keyword">const</span> QStringList &amp; relation, T &amp; t, QSqlDatabase * pDatabase = NULL)
<a name="l00371"></a>00371 { QSqlError err = <a class="code" href="group___qx_dao.html#gab4400decee849f008633c52a47508995" title="Insert an element or a list of elements into database.">qx::dao::detail::QxDao_Insert_WithRelation&lt;T&gt;::insert</a>(relation, t, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00372"></a>00372 
<a name="l00383"></a>00383 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00384"></a>00384 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga5b15d51effdce39c2db51af2a3d6ee6c" title="Insert an element and all its relationships (or a list of elements + all relationships) into database...">insert_with_all_relation</a>(T &amp; t, QSqlDatabase * pDatabase = NULL)
<a name="l00385"></a>00385 { QSqlError err = <a class="code" href="group___qx_dao.html#gab4400decee849f008633c52a47508995" title="Insert an element or a list of elements into database.">qx::dao::detail::QxDao_Insert_WithRelation&lt;T&gt;::insert</a>(<span class="stringliteral">&quot;*&quot;</span>, t, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00386"></a>00386 
<a name="l00398"></a>00398 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00399"></a>00399 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga1ef8fc06625b53a5dd44aa629df0ec09" title="Update an element and its relationships (or a list of elements + relationships) into database...">update_with_relation</a>(<span class="keyword">const</span> QString &amp; relation, T &amp; t, QSqlDatabase * pDatabase = NULL)
<a name="l00400"></a>00400 { QSqlError err = <a class="code" href="group___qx_dao.html#ga690042401fc276a1929d311759b69ce2" title="Update an element or a list of elements into database.">qx::dao::detail::QxDao_Update_WithRelation&lt;T&gt;::update</a>(relation, <span class="stringliteral">&quot;&quot;</span>, t, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00401"></a>00401 
<a name="l00414"></a>00414 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00415"></a>00415 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga9fb34aec7e865b97365c91ba20e422d2" title="Update an element and its relationships (or a list of elements + relationships) into database (adding...">update_by_query_with_relation</a>(<span class="keyword">const</span> QString &amp; relation, <span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_sql_query.html" title="qx::QxSqlQuery : define a user SQL query added to default SQL query builded by QxOrm library...">qx::QxSqlQuery</a> &amp; query, T &amp; t, QSqlDatabase * pDatabase = NULL)
<a name="l00416"></a>00416 { QSqlError err = <a class="code" href="group___qx_dao.html#ga690042401fc276a1929d311759b69ce2" title="Update an element or a list of elements into database.">qx::dao::detail::QxDao_Update_WithRelation&lt;T&gt;::update</a>(relation, query, t, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00417"></a>00417 
<a name="l00429"></a>00429 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00430"></a>00430 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga1ef8fc06625b53a5dd44aa629df0ec09" title="Update an element and its relationships (or a list of elements + relationships) into database...">update_with_relation</a>(<span class="keyword">const</span> QStringList &amp; relation, T &amp; t, QSqlDatabase * pDatabase = NULL)
<a name="l00431"></a>00431 { QSqlError err = <a class="code" href="group___qx_dao.html#ga690042401fc276a1929d311759b69ce2" title="Update an element or a list of elements into database.">qx::dao::detail::QxDao_Update_WithRelation&lt;T&gt;::update</a>(relation, <span class="stringliteral">&quot;&quot;</span>, t, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00432"></a>00432 
<a name="l00445"></a>00445 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00446"></a>00446 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga9fb34aec7e865b97365c91ba20e422d2" title="Update an element and its relationships (or a list of elements + relationships) into database (adding...">update_by_query_with_relation</a>(<span class="keyword">const</span> QStringList &amp; relation, <span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_sql_query.html" title="qx::QxSqlQuery : define a user SQL query added to default SQL query builded by QxOrm library...">qx::QxSqlQuery</a> &amp; query, T &amp; t, QSqlDatabase * pDatabase = NULL)
<a name="l00447"></a>00447 { QSqlError err = <a class="code" href="group___qx_dao.html#ga690042401fc276a1929d311759b69ce2" title="Update an element or a list of elements into database.">qx::dao::detail::QxDao_Update_WithRelation&lt;T&gt;::update</a>(relation, query, t, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00448"></a>00448 
<a name="l00459"></a>00459 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00460"></a>00460 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga0dceedd8eb471369d44baa3081b6e255" title="Update an element and all its relationships (or a list of elements + all relationships) into database...">update_with_all_relation</a>(T &amp; t, QSqlDatabase * pDatabase = NULL)
<a name="l00461"></a>00461 { QSqlError err = <a class="code" href="group___qx_dao.html#ga690042401fc276a1929d311759b69ce2" title="Update an element or a list of elements into database.">qx::dao::detail::QxDao_Update_WithRelation&lt;T&gt;::update</a>(<span class="stringliteral">&quot;*&quot;</span>, <span class="stringliteral">&quot;&quot;</span>, t, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00462"></a>00462 
<a name="l00474"></a>00474 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00475"></a>00475 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga201b1897089841edc197fa2b86cf65b6" title="Update an element and all its relationships (or a list of elements + all relationships) into database...">update_by_query_with_all_relation</a>(<span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_sql_query.html" title="qx::QxSqlQuery : define a user SQL query added to default SQL query builded by QxOrm library...">qx::QxSqlQuery</a> &amp; query, T &amp; t, QSqlDatabase * pDatabase = NULL)
<a name="l00476"></a>00476 { QSqlError err = <a class="code" href="group___qx_dao.html#ga690042401fc276a1929d311759b69ce2" title="Update an element or a list of elements into database.">qx::dao::detail::QxDao_Update_WithRelation&lt;T&gt;::update</a>(<span class="stringliteral">&quot;*&quot;</span>, query, t, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00477"></a>00477 
<a name="l00491"></a>00491 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00492"></a>00492 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga653fbb3a886e48bca4236ea3fe6ac865" title="Insert (if no exist) or update (if already exist) an element and its relationships (or a list of elem...">save_with_relation</a>(<span class="keyword">const</span> QString &amp; relation, T &amp; t, QSqlDatabase * pDatabase = NULL)
<a name="l00493"></a>00493 { QSqlError err = <a class="code" href="group___qx_dao.html#ga100e9d635a4720ed9512799ba0ea519b" title="Insert (if no exist) or update (if already exist) an element or a list of elements into database...">qx::dao::detail::QxDao_Save_WithRelation&lt;T&gt;::save</a>(relation, t, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00494"></a>00494 
<a name="l00508"></a>00508 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00509"></a>00509 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga653fbb3a886e48bca4236ea3fe6ac865" title="Insert (if no exist) or update (if already exist) an element and its relationships (or a list of elem...">save_with_relation</a>(<span class="keyword">const</span> QStringList &amp; relation, T &amp; t, QSqlDatabase * pDatabase = NULL)
<a name="l00510"></a>00510 { QSqlError err = <a class="code" href="group___qx_dao.html#ga100e9d635a4720ed9512799ba0ea519b" title="Insert (if no exist) or update (if already exist) an element or a list of elements into database...">qx::dao::detail::QxDao_Save_WithRelation&lt;T&gt;::save</a>(relation, t, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00511"></a>00511 
<a name="l00524"></a>00524 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00525"></a>00525 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga8d08cafb739abd81f727ed64060cd577" title="Insert (if no exist) or update (if already exist) an element and all its relationships (or a list of ...">save_with_all_relation</a>(T &amp; t, QSqlDatabase * pDatabase = NULL)
<a name="l00526"></a>00526 { QSqlError err = <a class="code" href="group___qx_dao.html#ga100e9d635a4720ed9512799ba0ea519b" title="Insert (if no exist) or update (if already exist) an element or a list of elements into database...">qx::dao::detail::QxDao_Save_WithRelation&lt;T&gt;::save</a>(<span class="stringliteral">&quot;*&quot;</span>, t, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00527"></a>00527 
<a name="l00547"></a>00547 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00548"></a>00548 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#gadf265ab7dd42ab831dbb94bf5aeeafd3" title="Insert (if no exist) or update (if already exist) recursively an element and all levels of relationsh...">save_with_relation_recursive</a>(T &amp; t, <a class="code" href="structqx_1_1dao_1_1save__mode.html#a597b360b936ecba23b0137b14940897c">qx::dao::save_mode::e_save_mode</a> eSaveMode = <a class="code" href="structqx_1_1dao_1_1save__mode.html#a597b360b936ecba23b0137b14940897ca5a854540ed438d33cb50160f25c7ac2b">qx::dao::save_mode::e_check_insert_or_update</a>, QSqlDatabase * pDatabase = NULL, <a class="code" href="classqx_1_1_qx_sql_relation_params.html" title="qx::QxSqlRelationParams : define list of parameters to transfer to relationships to manage SQL querie...">qx::QxSqlRelationParams</a> * pRelationParams = NULL)
<a name="l00549"></a>00549 { QSqlError err = <a class="code" href="group___qx_dao.html#ga100e9d635a4720ed9512799ba0ea519b" title="Insert (if no exist) or update (if already exist) an element or a list of elements into database...">qx::dao::detail::QxDao_Save_WithRelation_Recursive&lt;T&gt;::save</a>(t, eSaveMode, pDatabase, pRelationParams); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00550"></a>00550 
<a name="l00562"></a>00562 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00563"></a>00563 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga2abaf5f2e6de160b099cf2ab74967244" title="Fetch an object t (retrieve all its properties) of type T (registered into QxOrm context) mapped to a...">fetch_by_id</a>(T &amp; t, QSqlDatabase * pDatabase = NULL, <span class="keyword">const</span> QStringList &amp; columns = QStringList())
<a name="l00564"></a>00564 { QSqlError err = qx::dao::detail::QxDao_FetchById&lt;T&gt;::fetchById(t, pDatabase, columns); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00565"></a>00565 
<a name="l00577"></a>00577 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00578"></a>00578 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#gab7a00918917a06ad703a8d6887b94edb" title="Fetch a list of objects (retrieve all elements and properties associated) of type T (container regist...">fetch_all</a>(T &amp; t, QSqlDatabase * pDatabase = NULL, <span class="keyword">const</span> QStringList &amp; columns = QStringList())
<a name="l00579"></a>00579 { QSqlError err = qx::dao::detail::QxDao_FetchAll&lt;T&gt;::fetchAll(<span class="stringliteral">&quot;&quot;</span>, t, pDatabase, columns); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00580"></a>00580 
<a name="l00593"></a>00593 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00594"></a>00594 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga98785915863d9487b0f3734b667a3c72" title="Fetch a list of objects (retrieve all elements and properties associated) of type T (container regist...">fetch_by_query</a>(<span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_sql_query.html" title="qx::QxSqlQuery : define a user SQL query added to default SQL query builded by QxOrm library...">qx::QxSqlQuery</a> &amp; query, T &amp; t, QSqlDatabase * pDatabase = NULL, <span class="keyword">const</span> QStringList &amp; columns = QStringList())
<a name="l00595"></a>00595 { QSqlError err = qx::dao::detail::QxDao_FetchAll&lt;T&gt;::fetchAll(query, t, pDatabase, columns); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00596"></a>00596 
<a name="l00608"></a>00608 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00609"></a>00609 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga690042401fc276a1929d311759b69ce2" title="Update an element or a list of elements into database.">update</a>(T &amp; t, QSqlDatabase * pDatabase = NULL, <span class="keyword">const</span> QStringList &amp; columns = QStringList())
<a name="l00610"></a>00610 { QSqlError err = <a class="code" href="group___qx_dao.html#ga690042401fc276a1929d311759b69ce2" title="Update an element or a list of elements into database.">qx::dao::detail::QxDao_Update&lt;T&gt;::update</a>(<span class="stringliteral">&quot;&quot;</span>, t, pDatabase, columns); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00611"></a>00611 
<a name="l00624"></a>00624 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00625"></a>00625 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga1bd1d32eccfb73ccd6a0e82130061fb4" title="Update an element or a list of elements into database (adding a user SQL query to the default SQL que...">update_by_query</a>(<span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_sql_query.html" title="qx::QxSqlQuery : define a user SQL query added to default SQL query builded by QxOrm library...">qx::QxSqlQuery</a> &amp; query, T &amp; t, QSqlDatabase * pDatabase = NULL, <span class="keyword">const</span> QStringList &amp; columns = QStringList())
<a name="l00626"></a>00626 { QSqlError err = <a class="code" href="group___qx_dao.html#ga690042401fc276a1929d311759b69ce2" title="Update an element or a list of elements into database.">qx::dao::detail::QxDao_Update&lt;T&gt;::update</a>(query, t, pDatabase, columns); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00627"></a>00627 
<a name="l00638"></a>00638 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00639"></a>00639 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga3419d221eac86764eb328da5a89f7fc9" title="Update only modified fields/properties of an element or a list of elements into database (using is di...">update_optimized</a>(<a class="code" href="classqx_1_1dao_1_1ptr.html" title="qx::dao::ptr&lt;T&gt; : provide a classic smart-pointer (like boost::shared_ptr&lt;T&gt; or QSharedPointer&lt;T&gt;) wi...">qx::dao::ptr&lt;T&gt;</a> &amp; <a class="code" href="classqx_1_1dao_1_1ptr.html" title="qx::dao::ptr&lt;T&gt; : provide a classic smart-pointer (like boost::shared_ptr&lt;T&gt; or QSharedPointer&lt;T&gt;) wi...">ptr</a>, QSqlDatabase * pDatabase = NULL)
<a name="l00640"></a>00640 { QSqlError err = <a class="code" href="group___qx_dao.html#ga3419d221eac86764eb328da5a89f7fc9" title="Update only modified fields/properties of an element or a list of elements into database (using is di...">qx::dao::detail::QxDao_Update_Optimized&lt;T&gt;::update_optimized</a>(<span class="stringliteral">&quot;&quot;</span>, ptr, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00641"></a>00641 
<a name="l00653"></a>00653 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00654"></a>00654 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#gaf6b0075263b6f7f17de4ef5b58336620" title="Update only modified fields/properties of an element or a list of elements into database (using is di...">update_optimized_by_query</a>(<span class="keyword">const</span> <a class="code" href="classqx_1_1_qx_sql_query.html" title="qx::QxSqlQuery : define a user SQL query added to default SQL query builded by QxOrm library...">qx::QxSqlQuery</a> &amp; query, <a class="code" href="classqx_1_1dao_1_1ptr.html" title="qx::dao::ptr&lt;T&gt; : provide a classic smart-pointer (like boost::shared_ptr&lt;T&gt; or QSharedPointer&lt;T&gt;) wi...">qx::dao::ptr&lt;T&gt;</a> &amp; ptr, QSqlDatabase * pDatabase = NULL)
<a name="l00655"></a>00655 { QSqlError err = <a class="code" href="group___qx_dao.html#ga3419d221eac86764eb328da5a89f7fc9" title="Update only modified fields/properties of an element or a list of elements into database (using is di...">qx::dao::detail::QxDao_Update_Optimized&lt;T&gt;::update_optimized</a>(query, ptr, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00656"></a>00656 
<a name="l00665"></a>00665 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt;
<a name="l00666"></a>00666 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga095032025fbf7aee88da96479203a077" title="Execute a custom SQL query or a stored procedure, all columns that can be mapped to the instance of t...">execute_query</a>(<a class="code" href="classqx_1_1_qx_sql_query.html" title="qx::QxSqlQuery : define a user SQL query added to default SQL query builded by QxOrm library...">qx::QxSqlQuery</a> &amp; query, T &amp; t, QSqlDatabase * pDatabase = NULL)
<a name="l00667"></a>00667 { QSqlError err = qx::dao::detail::QxDao_ExecuteQuery&lt;T&gt;::executeQuery(query, t, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00668"></a>00668 
<a name="l00669"></a>00669 <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="group___qx_dao.html#ga3288b4e3c6a3fa7aeac298262d3102dd" title="qx::dao::call_query function can be used to call a custom SQL query or a stored procedure">call_query</a>(<a class="code" href="classqx_1_1_qx_sql_query.html" title="qx::QxSqlQuery : define a user SQL query added to default SQL query builded by QxOrm library...">qx::QxSqlQuery</a> &amp; query, QSqlDatabase * pDatabase = NULL)
<a name="l00670"></a>00670 { QSqlError err = <a class="code" href="group___qx_dao.html#ga3288b4e3c6a3fa7aeac298262d3102dd" title="qx::dao::call_query function can be used to call a custom SQL query or a stored procedure">qx::dao::call_query</a>(query, pDatabase); <span class="keywordflow">if</span> (err.isValid()) { <span class="keywordflow">throw</span> <a class="code" href="classqx_1_1dao_1_1sql__error.html" title="qx::dao::sql_error : define a SQL error exception and retrieve QSqlError type of Qt library...">qx::dao::sql_error</a>(err); } }
<a name="l00671"></a>00671 
<a name="l00673"></a>00673 
<a name="l00674"></a>00674 } <span class="comment">// namespace throwable</span>
<a name="l00675"></a>00675 } <span class="comment">// namespace dao</span>
<a name="l00676"></a>00676 } <span class="comment">// namespace qx</span>
<a name="l00677"></a>00677 
<a name="l00678"></a>00678 <span class="preprocessor">#endif // _QX_DAO_THROWABLE_H_</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_qx_dao_throwable_8h.html">QxDaoThrowable.h</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Sun Dec 11 2016 13:41:03 for QxOrm by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
